package com.shigu.mo.bo.requests;


import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;

/**
 * 收款
 */
public class ReceiveRequest extends MoRequest{
    @NotNull(message = "请选择储蓄卡")
    private Long cashCardId;//储蓄卡ID
    @NotNull(message = "请选择信用卡")
    private Long creditCardId;//信用卡ID
    @NotNull(message = "请输入刷卡金额")
    @Digits(integer = 12,fraction = 2,message = "请输入正确的金额格式")
    private String withdrawalMoney;//要刷的金额

    @NotNull(message = "请选择通道")
    private Long passageId;

    public Long getCashCardId() {
        return cashCardId;
    }

    public void setCashCardId(Long cashCardId) {
        this.cashCardId = cashCardId;
    }

    public Long getCreditCardId() {
        return creditCardId;
    }

    public void setCreditCardId(Long creditCardId) {
        this.creditCardId = creditCardId;
    }

//    public Double getWithdrawalMoney() {
//        return withdrawalMoney;
//    }
//
//    public void setWithdrawalMoney(Double withdrawalMoney) {
//        if (withdrawalMoney != null) {
//            this.withdrawalMoney = MoneyUtil.formatMoneyDouble(withdrawalMoney);
//        }
//    }

    public String getWithdrawalMoney() {
        return withdrawalMoney;
    }

    public void setWithdrawalMoney(String withdrawalMoney) {
        this.withdrawalMoney = withdrawalMoney;
    }

    public Long getPassageId() {
        return passageId;
    }

    public void setPassageId(Long passageId) {
        this.passageId = passageId;
    }
}
